Image detection scanning method for object surface defects and image detection scanning system thereof

ABSTRACT

An image detection scanning method for object surface defects and an image detection scanning system thereof are provided. The method includes capturing a test image according to test light, determining whether the test image is normal, generating a coincidence signal if the test image is normal, coinciding the object with the detection position according to the coincidence signal, sequentially moving one of a plurality of areas on a surface of the object to the detection position, providing detection light facing the detection position, the detection light illuminating the detection position with a light incident angle of less than or equal to 90 degrees relative to a normal line of the area located at the detection position, and capturing a detection image of each of the areas sequentially located at the detection position according to the detection light after the object is coincided with the detection position.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority from U.S. Patent Application Ser. No. 62/848,216, filed on May 15, 2019, the entire disclosure of which is hereby incorporated by reference.

BACKGROUND OF THE INVENTION Field of the Invention

The present disclosure relates to an image detection scanning method for object surface defects and an image detection scanning system thereof.

Description of the Prior Art

The defect detection for products is a critical step in the industrial manufacturing process. Defective products cannot be sold; otherwise malfunctioning end products can be resulted if defective intermediate products are sold to other manufacturers for processing. One conventional defect detection method is manually inspecting a product under test by naked eyes or by touching of hands, so as to determine whether a product contains defects, such as recesses, scratches, color differences or damages. However, manually inspecting whether a product contains defects yields less satisfactory efficiency, and has a greater probability of misjudgment, leading to the problem of an unmanageable product yield rate.

SUMMARY OF THE INVENTION

The present disclosure provides an image detection scanning system for object surface defects. The system includes a driver component, a light source component, a photosensitive element and a processor. The driver component carries an object, and the surface of the object is divided into a plurality of areas along an extension direction. The driver component rotates the object to coincide the object with a detection position, and sequentially moves the plurality of areas on the surface to the detection position after the object is coincided with the detection position. The light source component is configured to face the detection position and provides detection light to illuminate the detection position, wherein a light incident angle of the detection light relative to a normal line of the area on the surface located at the detection position is less than or equal to 90 degrees. The photosensitive element is configured to face the detection position, captures a detection image of each of the areas sequentially located at the detection position after the object is coincided with the detection position, and captures a test image according to test light before the object is coincided with the detection position, wherein a photosensitive axis of the photosensitive element is parallel to the normal line, or is between the normal line and the extension direction. The processor is coupled to the photosensitive element, and determines whether the test image is normal, and drives the driver component to coincide the object with the detection position if the test image is normal.

The present disclosure provides an image detection scanning method for object surface defects. The method includes: capturing a test image by a photosensitive element according to test light; determining whether the test image is normal by a processor; generating a coincidence signal if the test image is normal; coinciding the object to a detection position according to the coincidence signal; sequentially moving one of a plurality of areas on a surface of the object to the detection position, wherein the areas are divided along an extension direction of the surface; providing detection light by a light source component facing the detection position, wherein the detection light illuminates the detection position with a light incident angle of less than or equal to 90 degrees relative to a normal line of the area located at the detection position; and capturing a detection image of each of the areas sequentially located at the detection position by the photosensitive element according to the detection light after the object is coincided with the detection position, wherein a photosensitive axis of the photosensitive element is parallel to the normal line or is between the normal line and the extension direction.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a schematic diagram of an image detection scanning system for object surface defects according to an embodiment of the present disclosure;

FIG. 2 is a function block diagram of the image detection scanning system for object surface defects in FIG. 1 according to an embodiment;

FIG. 3 is a schematic diagram of an implementation form of relative optical positions of the object, the light source component and the photosensitive element in FIG. 1;

FIG. 4 is a schematic diagram of another implementation form of relative optical positions of the object, the light source component and the photosensitive element in FIG. 1;

FIG. 5 is a schematic diagram of yet another implementation form of relative optical positions of the object, the light source component and the photosensitive element in FIG. 1;

FIG. 6 is a flowchart of an image detection scanning method for object surface defects according to an embodiment of the present disclosure;

FIG. 7 is a schematic diagram of a predetermined surface defect corresponding to the object in FIG. 1 according to an embodiment;

FIG. 8 is a schematic diagram of the image detection scanning system for object surface defects according to another embodiment of the present disclosure;

FIG. 9 is a schematic diagram of an implementation form of relative optical positions of the object, the light source component and the photosensitive element in FIG. 7;

FIG. 10 is a schematic diagram of another implementation form of relative optical positions of the object, the light source component and the photosensitive element in FIG. 7;

FIG. 11 is a flowchart of an image detection scanning method for object surface defects according to another embodiment of the present disclosure;

FIG. 12 is a schematic diagram of an object image including sub object images according to an embodiment; and

FIG. 13 is a schematic diagram of one object image in FIG. 12 according to an embodiment.

DETAILED DESCRIPTION OF THE EMBODIMENTS

FIG. 1 shows a schematic diagram of an image detection scanning system for object surface defects according to an embodiment of the present disclosure. Referring to FIG. 1, the image detection scanning system for object surface defects is suitable for scanning an object 2 so as to obtain at least one detection image of the object 2. In some embodiments, the surface of the object 2 can include at least one surface defect, and the corresponding detection image also presents an image block with the surface defect. Herein, the surface defect is a three-dimensional structure. Herein, the three-dimensional structure is in a scale of mm to μm.

The image detection scanning system for object surface defects includes a driver component 11, a light source component 12 and a photosensitive element 13. Referring to FIG. 1 to FIG. 4, FIG. 2 shows a function block diagram of an image detection scanning system for object surface defects in FIG. 1 according to an embodiment, and FIGS. 3 and 4 respectively show schematic diagrams of two implementation forms of relative optical positions of the object 2, the light source component 12 and the photosensitive element 13 in FIG. 1. The light source component 12 and the photosensitive element 13 face a detection position 14 on the driver component 11. The driver component 11 carries the object 2 under detection. The object 2 has a surface 21 which is divided into a plurality of areas along an extension direction D1 of the surface 21 of the object 2. Herein, the surface 21 of the object 2 in FIG. 3 and FIG. 4 are, for example but not limited to, divided into nine areas, of which three areas 21A to 21C are denoted. The surface 21 of the object 2 can also be divided into areas in other quantities.

Referring to FIGS. 1 to 6, FIG. 6 shows a flowchart of an image detection scanning method for object surface defects according to an embodiment of the present disclosure. The image detection scanning system for object surface defects can perform a detection procedure. The driver component 11 sequentially moves one of the plurality of areas 21A to 21C on the surface 21 to the foregoing detection position 14 (step S01) in the detection procedure. The light source component 12 emits light L1 (hereinafter referred to as detection light L1) to the areas 21A to 21C located at the detection position 14 (step S02) in the detection procedure. Furthermore, as shown in FIG. 3 and FIG. 4, an included angle (hereinafter referred to as a light incident angle θ) between the incident direction of the detection light L1 and a normal line 14A of each of the areas 21A to 21C located at the detection position 14 is more than 0 degree and less than or equal to 90 degrees; that is to say, the detection light L1 illuminates the detection position 14 with a light incident angle θ of more than 0 degree and less than or equal to 90 degrees relative to the normal line 14A (step S03), such that the areas 21A to 21C on the surface 21 are sequentially illuminated at the detection position 14 by the detection light L1 from a lateral or inclined direction. Moreover, the areas 21A to 21C on the surface 21 sequentially face the photosensitive element 13. In some embodiments, as shown in FIGS. 3 and 4, the photosensitive axis 13A of the photosensitive element 13 is parallel to the normal line 14A; alternatively, as shown in FIG. 5, the photosensitive axis 13A of the photosensitive element 13 is between the normal line 14A and the extension direction D1, that is to say, an included angle α is present between the photosensitive axis 13A of the photosensitive element 13 and the normal line 14A. The photosensitive element 13 receives diffused light generated by the light received on the areas 21A to 21C on the surface 21, and captures, according to the diffused light, detection images of the areas 21A to 21C sequentially located at the detection position 14 (step S04).

For instance, taking the driver component 11 first moving the area 21A to the detection position 14 in step S01 for example, the detection light L1 provided by the light source component 12 illuminates the area 21A, the photosensitive element 13 captures the detection image of the area 21A in step S04, the driver component 11 next moves the object 2, the driver component 11 again moves the area 21B to the detection position 14 in step S01, the photosensitive element 13 again captures the detection image of the area 21B in step S04, the driver component 11 next moves the object 2, the driver component 11 again moves the area 21C to the detection position 14 in step S01, and the photosensitive element 13 again captures the detection image of the area 21C in step S04.

Thus, according to the light incident angle θ of more than 0 degree and less than or equal to 90 degrees, that is, according to the detection light L1 that is laterally incident or incident at an inclination, if the surface 21 of the object 2 includes a groove-shaped or hole-shaped surface defect, the detection light L1 cannot illuminate the bottom of the surface defect and the surface defect appears as a shadow in the detection images of the areas 21A to 21C on the surface 21. Hence, the surface 21 and the surface defect form an apparent contrast in the detection images, and the image detection scanning system for object surface defects or an inspector can determine whether the surface 21 includes a surface defect according to whether the detection image includes a shadow (step S06), and the inspector is not required to determine by observing the object 2 with naked eyes or touching the object 2 with hands whether the surface 21 of the object 2 includes a surface defect, thereby significantly enhancing the efficiency of detection for surface defects as well as alleviating the issue of human misjudgment.

In one embodiment, the photosensitive element 13 can be implemented by a linear image sensor or a planar image sensor. Furthermore, the detection light L1 provided by the light source component 12 can be visible light, the light wavelength of the detection light L1 can range between 380 nm and 750 nm, for example, violet light having a light wavelength ranging between 380 nm and 450 nm to red light having a light wavelength ranging between 620 nm and 750 nm. The visible light allows surface defects on the surface 21 in a scale of μm to form an image in the detection image.

In one embodiment, according to different light incident angles θ, surface defects of different depths present different brightness levels in the detection image. More specifically, as shown in FIG. 4, when the light incident angle θ is equal to 90 degrees, the incident direction of the detection light L1 is perpendicular to a depth direction D2 of the surface defect, and regardless of the depth of the surface defect, the surface defect on the surface 21 is not illuminated by the detection light L1 due to being recessed and hence does not produce any reflected light or diffused light; more specifically, surface defects with deeper or shallower depths both present shadows in the detection image, such that the detection image has a less obvious contrast or even nearly no contrast. As shown in FIG. 3, when the light incident angle θ is less than 90 degrees, the incident direction of the detection light L1 is not perpendicular to the depth direction D2 of the surface defect, the detection light L1 illuminates partial regions of the surface defect below the surface 21, the partial regions of the surface defect receive illumination of the detection light L1 and produce reflected light and diffused light, and the photosensitive element 13 receives the reflected light and diffused light from the partial regions of the surface defect; more specifically, surface defects present images with brighter borders (for protruding defects, for example) or darker borders (for recessed defects, for example) in the detection image, such that the detection image has a better contrast.

Moreover, in a situation where the same light incident angle θ is less than 90 degrees, the photosensitive element 13 receives more reflected light and diffused light from shallower surface defects than from deeper surface defects, and compared to a surface defect having a greater depth-width ratio, a shallower surface defect presents a brighter image in the detection image. Furthermore, in a situation where the light incident angle θ is less than 90 degrees, as the light incident angle θ gets smaller, more reflected light and diffused light are produced in the surface defects, the surface defects present brighter images in the detection image, and the brightness presented by a shallower surface defect in the detection image is also greater than the brightness presented by a deeper surface defect in the detection image. For example, a 30-degree light incident angle θ is less than a 60-degree light incident angle θ. Compared to a detection image corresponding to the 60-degree light incident angle θ, the surface defect presents higher brightness in a detection image corresponding to the 30-degree light incident angle θ. In addition, in the detection image corresponding to the 30-degree light incident angle θ, a shallower surface defect presents higher brightness in the detection image compared to a deeper surface defect.

On this basis, the value of the light incident angle θ and the brightness presented by a surface defect in a detection image have a negative correlation relationship. As the light incident angle θ gets smaller, a shallower surface defect presents a brighter image in a detection image; that is to say, in a situation where the light incident angle θ is smaller, it becomes more difficult for the image detection scanning system for object surface defects or the inspector to identify a shallower surface defect, but it is easier for the image detection scanning system for object surface defects or the inspector to identify a deeper surface defect according to a darker image. In contrast, as the light incident angle θ becomes larger, both of a deeper surface defect and a shallower surface defect present darker images in a detection image; that is to say, the image detection scanning system for object surface defects or the inspector is capable of identifying all surface defects in a situation where the light incident angle θ is larger.

Hence, the image detection scanning system for object surface defects or the inspector can set the corresponding light incident angle θ according to a predetermined hole depth d of a predetermined surface defect to be detected and the described negative correlation relationship. As shown in FIG. 1 and FIG. 2, the image detection scanning system for object surface defects further includes a light source adjustment component 16 coupled to the light source component 12. If detection for a predetermined deeper surface defect but not a predetermined shallower surface defect is desired, the light source adjustment component 16 can adjust the position of the light source component 12 according to the light incident angle θ calculated by using the described negative correlation relationship and thus set a smaller light incident angle θ in step S03. Furthermore, the light source adjustment component 16 drives the light source component 12 to output the detection light L1, such that the predetermined shallower surface defect presents a brighter image in the detection image and the predetermined deeper surface defect presents a darker image in the detection image. If detection for both predetermined shallower and deeper surface defects is desired, the light source adjustment component 16 can adjust the position of the light source component 12 according to the light incident angle θ calculated by using the described negative correlation relationship and thus set a larger light incident angle θ (e.g., 90 degrees) in step S03. Further, the light source adjustment component 16 drives the light source component 12 to output the detection light L1, such that the predetermined shallower and deeper surface defects both present shadows in the detection image.

For example, assuming that the object 2 is applied to a spindle of a safety belt component of an automobile, the foregoing surface defect can be a sand hole or an air hole caused by dust or air during the manufacturing process of the object 2, or a bump or a scratch, wherein the depth of the sand hole or the air hole is greater than that of the bump or the scratch. If detection for determining whether the object 2 contains sand holes or air holes is desired but detection for determining whether the object 2 contains bumps or scratches is not needed, the light source adjustment component 16 can adjust the position of the light source component 12 according to the light incident angle θ calculated by using the described negative correlation relationship and thus set a smaller light incident angle θ in step S03. Accordingly, a sand hole or an air hole presents lower brightness in the detection image, whereas a bump or a scratch presents higher brightness in the detection image, and the image detection scanning system for object surface defects or the inspector can quickly identify whether the object 2 contains sand holes or air holes. If detection for determining whether the object 2 contains bumps, scratches, sand holes and air holes is desired, the light source adjustment component 16 can adjust the position of the light source component 12 according to the light incident angle θ calculated by using the described negative correlation relationship and thus set a larger light incident angle θ in step S03. Accordingly, bumps, scratches, sand holes and air holes all present shadows in the detection image.

In one embodiment, the light incident angle θ is associated with a predetermined aspect ratio of a predetermined surface defect to be detected. As shown in FIG. 7, taking the predetermined surface defect having a predetermined hole depth d and a predetermined hole radius r for example, the predetermined hole radius r is the distance between any lateral surface within the predetermined surface defect and the normal line 14A, and a ratio (r/d) of the predetermined hole radius r to the predetermined hole depth d is the aspect ratio (r/d) stated above, and the light incident angle θ is the arctangent (r/d). On this basis, the light source adjustment component 16 can adjust the position of the light source component 12 according to the aspect ratio (r/d) of the predetermined surface defect to be detected and thus set a threshold angle of the light incident angle θ as the arctangent (r/d) in step S03, wherein the light incident angle θ needs to satisfy the conditions of being equal to or more than the arctangent (r/d) and less than or equal to 90 degrees, and the light source adjustment component 16 drives the light source component 12 to output the detection light L1 after adjusting the position of the light source component 12. In some embodiments, the predetermined hole radius r can be set in advance according to the size of the surface defect expected to be detected at the object 2.

In one embodiment, as shown in FIG. 1 and FIG. 2, the image detection scanning system for object surface defects further includes a processor 15. The processor 15, coupled to the light source adjustment component 16, is capable of calculating the light incident angle θ according to the described negative correlation relationship and the arctangent (r/d), and then drives the light source adjustment component 16 to adjust the position of the light source component 12 according to the light incident angle θ calculated.

In one embodiment, as shown in FIG. 1, FIG. 3 and FIG. 4, the object 2 is cylindrical, and the surface 21 of the object 2 can be a lateral surface of the object 2; that is, the surface 21 is a cylindrical surface and has a radian of 2π. Herein, as shown in FIG. 1 and FIG. 2, the driver component 11 includes a carrier element 111 and a step motor 112 connected to the carrier element 111. The carrier element 111 carries the object 2. In step S01, the step motor 112 can rotate in a clockwise direction or a counterclockwise direction, and drives the carrier element 111 to rotate so as to impel the object 2 to rotate. Taking the surface 21 including the areas 21A to 21C for example, the step motor 112 can sequentially rotate by 120 degrees, so as to move the areas 21A to 21C to the detection position 14. In another embodiment, as shown in FIG. 8 to FIG. 10, the object 2 is a cuboid or a cube in shape, and the surface 21 of the object 2 can be a non-curve surface having a curvature equal to zero or approximating zero. Herein, along an extension direction D1 of the surface 21 of the object 2, the surface 21 can be divided into the areas 21A to 21C. In step S01, the step motor 112 can drive the carrier element 111 to move parallel along the extension direction D1 perpendicular to the normal line 14A, so as to move the areas 21A to 21C to the detection position 14.

In some embodiments, the extension direction D1 can be a counterclockwise direction or a clockwise direction relative to the central axis of the object 2 as a rotation axis as shown in FIG. 1, or the long axis direction of the object 2 as shown in FIG. 8.

In one embodiment, as shown in FIG. 1 and FIG. 8, the light source component 12 can include a light emitting element. In another embodiment, as shown in FIGS. 3, 4, 9 and 10, the light source component 12 can include two light emitting elements 121 and 122, and the two light emitting elements 121 and 122 are symmetrically arranged on two opposite sides of the object 2 relative to the normal line 14A. The two light emitting elements 121 and 122 individually illuminate the detection position 14, the surface 21 is illuminated by the symmetrical detection light L1 and symmetrical diffused light is thus produced, and the photosensitive element 13 sequentially captures the detection images of the areas 21A to 21C located at the detection position 14 according to the symmetrical diffused light, hence enhancing the imaging quality of the detection image. In some embodiments, the light emitting elements 121 and 122 can be implemented by one or more light emitting diodes; in some embodiments, each of the light emitting elements 121 and 122 can be implemented by a laser light source.

In conclusion of the description above, according to the image detection scanning system for object surface defects and the image detection scanning method for object surface defects in one embodiments of the present disclosure, the image detection scanning system for object surface defects is capable of generating a detection image of an object surface, the image detection scanning system for object surface defects or an inspector can determine according to the detection image whether the surface of the object contains a surface defect, and the inspector is not required to determine by observing with naked eyes or touching with hands whether the surface of the object contains a surface defect, thus significantly enhancing the efficiency of detection for surface defects as well as alleviating the issue of human misjudgment. Furthermore, the light incident angle is associated with a predetermined hole depth or a predetermined aspect ratio of a predetermined surface defect to be detected, and the image detection scanning system for object surface defects or the inspector can adjust the light incident angle such that the surface defect presents corresponding brightness in the detection image, and the image detection scanning system for object surface defects or the inspector can then more efficiently identify the surface defects to be detected according to detection images of different brightness levels.

In one embodiment, the image detection scanning system for object surface defects further includes a test procedure and a coincidence procedure. The image detection scanning system for object surface defects sequentially performs the test procedure, the coincidence procedure and the foregoing detection procedure. The photosensitive element 13 captures a test image according to test light in the test procedure. In the coincidence procedure, the object 2 has a predetermined reference point, the driver component 11 moves the object 2 to coincide the predetermined reference point of the object 2 to the detection position 14, and after the predetermined reference point of the object 2 is coincided with the detection position 14, the driver component 11 uses the predetermined reference point of the object 2 as a starting position and sequentially moves the areas 21A to 21C on the surface 21 to the detection position 14.

More specifically, referring to FIGS. 1, 2, 8 and 11, the processor 15 is coupled between the photosensitive element 13 and the driver component 11. In the test procedure, the photosensitive element 13 captures a test image (step S07), and the processor 15 receives the test image captured by the photosensitive element 13, determines whether the test image is normal (step S08), and accordingly determines whether to drive the driver component 11 to perform the coincidence procedure. If the test image is normal, it means that the photosensitive element 13 is capable of capturing a normal detection image in step S04 in the detection procedure. The processor 15 generates an coincidence signal after determining that the test image is normal (a determination result of “yes”), and the driver component 11 receives the coincidence signal from the processor 15 and moves the object 2 to coincide the object 2 with the detection position 14 according to the coincidence signal (step S09). After the object 2 is coincided with the detection position 14, the image detection scanning system for object surface defects enters the detection procedure, the driver component 11 sequentially moves the areas 21A to 21C to the detection position 14 in the detection procedure (step S01), the light source component 12 provides the detection light L1 to illuminate the detection position 14 in the detection procedure (step S02 and step S03), and the photosensitive element 13 sequentially captures the detection images of the areas 21A to 21C located at the detection position 14 (step S04). The repeated details are omitted herein.

In one embodiment, as shown in FIG. 2, the processor 15 is coupled to the step motor 112. In step S09, the processor 15 can send the coincidence signal to control the step motor 112, such that the step motor 112 rotates to drive the carrier element 111 to move or rotate so as to coincide the object 2 to the detection position 14.

In one embodiment, after the photosensitive element 13 captures the detection images of the areas 21A to 21C on the surface 21, the processor 15 receives from the photosensitive element 13 the detection images of the areas 21A to 21C on the surface 21 and combines the detection images of the areas 21A to 21C on the surface 21 into an object image (step S10), and the image detection scanning system for object surface defects or the inspector can determine whether the surface 21 of the object 2 in overall includes surface defects according to the object image generated from the combination of the detection images.

In one embodiment, referring to FIG. 8, one single photosensitive element 13 can be provided for the image detection scanning system for object surface defects, and the photosensitive element 13 is used to perform image capturing of multiple areas 21A to 21C on the surface 21 so as to obtain multiple detection images respectively corresponding to the areas 21A to 21C on the surface 21. Then, the processor 15 combines the detection images of the areas 21A to 21C on the surface 21 into an object image. In some embodiments, if the object 2 is cylindrical, the one single photosensitive element 13 can perform image capturing of multiple areas 21A to 21C of the middle section of the object 2 to obtain multiple detection images respectively corresponding to the areas 21A to 21C, and the processor 15 then combines the detection images of the areas 21A to 21C into an object image 23, as shown in FIG. 13, which shows an example of detection images 231, 232 and 233 of the three areas 21A to 21C on the surface 21.

In one embodiment, as shown in FIG. 1, multiple photosensitive elements 13 can be provided for the image detection scanning system for object surface defects, and the photosensitive elements 13 respectively capture detection images of areas on a surface of the object 2 at different section positions located at the detection position 14. For example, taking a spindle as the object 2 for example, as shown in FIG. 1, one end of the object 2 is a narrower structure, the photosensitive elements 13 can be three in quantity, and the processor 15 forms an object image of the object 2 according to the detection images captured by the three photosensitive elements 13, as shown in FIG. 12. The object image includes a sub object image 22 (the upper section of the object image in FIG. 12) combined from the detection images of the areas 21A to 21C obtained by the first photosensitive element of the three photosensitive elements 13, a sub object image 23 (the middle section of the object image in FIG. 12) combined from the detection images of the areas 21A to 21C obtained by the second photosensitive element of the three photosensitive elements 13, and a sub object image 24 (the lower section of the object image in FIG. 12) combined from the detection images of the areas 21A to 21C obtained by the third photosensitive element of the three photosensitive elements 13.

In one embodiment, the processor 15 can automatically determine, according to the object image generated from combining the detection images, whether the surface 21 of the object 2 contains surface defects, whether the surface 21 has different textures, and whether the surface 21 contains an attachment such as paint or grease; that is, the processor 15 is capable of automatically determining different surface patterns of the object 2 according to the object image. More specifically, the processor 15 includes an artificial neural network system, which has a learning phase and a prediction phase. In the learning phase, the object image inputted into the artificial neural network system contains known surface patterns, and after the object image with known surface pattern is inputted, the artificial neural network system performs deep learning according to the known surface patterns and the surface pattern type (hereinafter referred to as a predetermined surface pattern type) of the known surface defects to built a predictive model (formed by a plurality of hidden layers sequentially connected, wherein each hidden layer includes one or more neurons, each of which performs a determination item). In other words, in the learning phase, the object image with known surface patterns is used to generate determination items of the neurons and/or to adjust a connection weighting of any two neurons, such that a prediction result (i.e., the predetermined surface pattern type outputted) of each object image conforms to the known surface patterns.

For instance, taking a sand hole or an air hole, a bump or a scratch as the foregoing surface defect as an example, image blocks presenting different surface patterns can be image blocks with images of sand holes of different depths, image blocks without images of sand holes but with images of bumps or scratches, image blocks with images of different levels of surface roughness, image blocks without images of surface defects, image blocks with images of surface defects with different contrasts and thus different aspect ratios as a result of illuminating the areas 21A to 21C by the detection light L1 of different light wavelengths, or image blocks having attachments of different colors. Herein, the artificial neural network system performs deep learning according to the object images of different surface patterns described above, so as to build a predictive model for identifying various surface patterns. In addition, the artificial neural network system can categorize object images having different surface patterns to generate in advance different predetermined surface pattern types. Thus, in the prediction phase, after the object image is generated and inputted into the artificial neural network system, the artificial neural network system executes the foregoing predictive model according to the object image generated from combining the detection images, so as to identify the object image presenting the surface pattern of the object 2 in the object image (step S11). Moreover, the object image is categorized by the predictive model, that is, the artificial neural network system categorizes the object image having the surface pattern of the object 2 according to the plurality of predetermined surface pattern types (step S12). At an output terminal, the object image undergoes percentile prediction according to the predetermined surface pattern types, that is, the percentage of possibility of falling within the individual types is predicted.

For instance, taking the areas 21A to 21C on the surface 21 for example, the artificial neural network system executes the predictive model according to the combined object images of the areas 21A to 21C, and can use the object image of the object 2 to identify that the area 21A contains sand holes and bumps, the area 21B does not contain any surface defects, the area 21C contains sand holes and paint, and the surface roughness of the area 21A is greater than the surface roughness of the area 21C. Next, assuming that there are six types of predetermined surface pattern types, namely, containing sand holes or air holes, containing scratches or bumps, having a high level of roughness, having a low level of roughness, having an attachment, and without any surface defects, the artificial neural network system can categorize the detection image of the area 21A to the predetermined types of containing sand holes or air holes and containing scratches or bumps, categorize the detection image of the area 21B to the predetermined type of without any surface defects, and categorize the detection image of the area 21C to the predetermined type of containing sand holes or air holes and the predetermined type of having an attachment, and can further categorize the detection image of the area 21A to the predetermined type of having a high level of roughness, and categorize the detection images of the areas 21B and 21C to the predetermined type of having a low level of roughness. Herein, by identifying different surface patterns using the artificial neural network system, the efficiency of detection is significantly enhanced, and the probability of human misjudgment is also reduced.

In one embodiment, the deep learning of the foregoing artificial neural network system can be implemented by, for example but not limited to, a convolutional neural network (CNN) algorithm.

In one embodiment, the photosensitive element 13 is the foregoing linear image sensor that has a field of vision (FOV) of approximately 0 degree. After the processor 15 receives the detection images of the areas 21A to 21C captured by the photosensitive element 13, in step S10, the processor 15 is not required to additionally perform image processing according to the detection images of the areas 21A to 21C but can directly combine the detection images of the areas 21A to 21C into the object image.

In another embodiment, the photosensitive element 13 is the foregoing planar image sensor that has a field of view of approximately 5 degrees to 30 degrees. In the detection images of the areas 21A to 21C captured by the photosensitive element 13, with regard to short sides of the detection images, the middle regions of the detection images have better imaging quality compared to other regions outside the middle regions. Herein, after the processor 15 receives the detection images of the areas 21A to 21C captured by the photosensitive element 13, the processor 15 captures the middle regions of the detection images on the basis of the short sides of the detection images in step S10. More specifically, in step S10, the processor 15 can capture the middle regions of the detection images according to a predetermined viewing angle within the field of view of the planar image sensor. For example, the predetermined viewing angle can be 1 degree, and the processor 15 captures the middle regions of the detection images corresponding to the 1-degree predetermined viewing angle, e.g., the middle region having a width of one pixel, and the processor 15 further combines the middle regions of the detection images into the object image, so as to avoid merging other regions in the detection images having poorer imaging quality into the object image, further enhancing the accuracy of the artificial neural network system in identifying surface patterns of the object 2.

In one embodiment, in step S07, the photosensitive element 13 can capture the image of any of the areas 21A to 21C on the surface 21 as the test image, and the processor 15 can compare whether the average brightness of the test image satisfies predetermined brightness in step S08 to determine whether the test image is normal. If the average brightness of the test image does not satisfy the predetermined brightness (a determination result of “no”), it means that the test image is abnormal, that is, the light incident angle θ set by the light source adjustment component 16 cannot accurately reflect the predetermined surface pattern type to be detected. At this point, the image detection scanning system for object surface defects performs a calibration procedure (step S05), and the processor 15 in the calibration procedure controls the light source adjustment component 16 to again adjust the position of the light source component 12 according to the described negative correlation relationship or the arctangent (r/d) to again set the light incident angle θ. The light source adjustment component 16 drives the light source component 12 to emit another test light having a different light incident angle θ after again adjusting the position of the light source component 12, such that the photosensitive element 13 captures the image of any one of the areas 21A to 21C according to the another test light (step S07) to generate another test image, and the processor 15 can again compare whether the average brightness of the another test image satisfies the foregoing predetermined brightness (step S08). If the average brightness of the another test image still does not satisfy the predetermined brightness (a determination result of “no”), the processor 15 controls the light source adjustment component 16 to again adjust the position of the light source component 12 and hence again adjust the light incident angle θ (step S05), until the average brightness of the test image captured by the photosensitive element 13 satisfies the predetermined brightness. If the average brightness of the test image satisfies the predetermined brightness, the processor 15 determines in step S08 that the test image is normal (a determination result of “yes”), and the image detection scanning system for object surface defects then performs subsequent step S09 to perform the coincidence procedure and the detection procedure described above.

In conclusion of the description above, according to the image detection scanning method for object surface defects and the image detection scanning system thereof in one embodiment of the present disclosure, an artificial neural network system can perform deep learning according to various object images having different surface patterns and thus build a predictive model, and can identify and categorize different surface patterns of objects according to the predictive model, thereby significantly enhancing the efficiency of object detection, as well as reducing the possibility of human misjudgment. In addition, the photosensitive element can capture detection images of areas on a surface of a coincided object located at the same position, and the artificial neural network system can thus build an even more accurate predictive model on the basis of the detection images of the same position, further lowering the possibility of misjudgment.

The present disclosure is explained by way of the disclosed embodiments that are not to be construed as limitations to the present disclosure. Without departing from the spirit and purview of the present disclosure, a person of ordinary skill in the art could make slight modifications and changes. Therefore, the legal protection of the present disclosure shall be defined by the appended claims. 

What is claimed is:
 1. An image detection scanning system for object surface defects, suitable for inspecting an object, the system comprising: a driver component carrying the object, wherein a surface of the object is divided along an extension direction into a plurality of areas, the driver component further moving the object to coincide the object with a detection position, and sequentially moving the plurality of areas to the detection position after the object is coincided with the detection position; a light source component configured to face the detection position, providing detection light to illuminate the detection position, a light incident angle of the detection light relative to a normal line of the area located at the detection position being less than or equal to 90 degrees; a photosensitive element configured to face the detection position, capturing a detection image of the area sequentially located at the detection position after the object is coincided with the detection position, and capturing a test image according to test light before the object is coincided with the detection position, wherein a photosensitive axis of the photosensitive element is parallel to the normal line or is between the normal line and the extension direction; and a processor coupled to the photosensitive element, determining whether the test image is normal, and driving the driver component to coincide the object with the detection position if the test image is normal.
 2. The image detection scanning system for object surface defects according to claim 1, wherein the processor further receives the detection images of the plurality of areas, and combines the detection images of the plurality of areas into an object image.
 3. The image detection scanning system for object surface defects according to claim 2, wherein the processor captures middle regions of the test images based on short sides of the detection images, and combines the plurality of middle regions into the object image.
 4. The image detection scanning system for object surface defects according to claim 3, wherein the processor captures, based on a predetermined viewing angle within a field of view of the photosensitive element, the middle regions of the detection images corresponding to the predetermined viewing angle.
 5. The image detection scanning system for object surface defects according to claim 2, wherein the processor comprises: an artificial neural network system, for executing a predictive model by an artificial neural network system of the processor according to the object image to identify in the object image an image block presenting a surface pattern of the object.
 6. The image detection scanning system for object surface defects according to claim 5, wherein the predictive model comprises a plurality of predetermined surface pattern types, and the artificial neural network system further categorizes the image block of the surface pattern of the object according to the plurality of predetermined surface pattern types.
 7. An image detection scanning method for object surface defects, suitable for inspecting an object, the method comprising: capturing a test image by a photosensitive element according to test light; determining whether the test image is normal by a processor; generating a coincidence signal if the test image is normal; coinciding the object with a detection position according to the coincidence signal; after coinciding the object with the detection position, sequentially moving one of a plurality of areas on a surface of the object to the detection position, wherein the plurality of areas are divided along an extension direction of the surface; providing detection light by a light source component facing the detection position, wherein the detection light illuminates the detection position with a light incident angle of less than or equal to 90 degrees relative to a normal line of the area located at the detection position; and capturing detection images of the areas sequentially located at the detection position by the photosensitive element after coinciding the object with the detection position according to the detection light, wherein a photosensitive axis of the photosensitive element is parallel to the normal line or is between the normal line and the extension direction.
 8. The image detection scanning method for object surface defects according to claim 7, further comprising: receiving the detection images of the plurality of areas by the processor; and combining the detection images of the plurality of areas into an object image by the processor.
 9. The image detection scanning method for object surface defects according to claim 8, wherein in the step of combining the detection images of the plurality of areas into the object image by the processor, the processor captures, based on short sides of the detection images, middle regions of the detection images, and combines the plurality of middle regions into the object image.
 10. The image detection scanning method for object surface defects according to claim 9, wherein in the step of combining the detection images of the plurality of areas into the object image by the processor, the processor captures, based on a predetermined viewing angle of a field of view of the photosensitive element, the middle regions of the detection images, and combines the plurality of middle regions into the object image.
 11. The image detection scanning method for object surface defects according to claim 7, further comprising: executing a predictive model by an artificial neural network system of the processor according to the object image to identify in the object image an image block presenting a surface pattern of the object.
 12. The image detection scanning method for object surface defects according to claim 11, wherein in the step of executing the predictive model by the artificial neural network system, the artificial neural network system further categorizes the image bock of the surface pattern of the object according to a plurality of predetermined surface pattern types. 